package com.scm.entity;

/**
 * @author CHL
 * @ClassName: Poitem
 * @Description: TODO
 * @date 2022/3/8 15:08
 * @Version 1.0
 */
public class Poitem
{
    private Long poId;
    private String productCode;
    private Double unitPrice;
    private Integer num;
    private String unitName;
    private Double itemPrice;
    private String productName;

    public void setPoId(Long poId)
    {
        this.poId = poId;
    }

    public void setProductCode(String productCode)
    {
        this.productCode = productCode;
    }

    public void setUnitPrice(Double unitPrice)
    {
        this.unitPrice = unitPrice;
    }

    public void setNum(Integer num)
    {
        this.num = num;
    }

    public void setUnitName(String unitName)
    {
        this.unitName = unitName;
    }

    public void setItemPrice(Double itemPrice)
    {
        this.itemPrice = itemPrice;
    }

    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof Poitem)) {
            return false;
        }
        Poitem other = (Poitem)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$poId = getPoId();Object other$poId = other.getPoId();
        if (this$poId == null ? other$poId != null : !this$poId.equals(other$poId)) {
            return false;
        }
        Object this$unitPrice = getUnitPrice();Object other$unitPrice = other.getUnitPrice();
        if (this$unitPrice == null ? other$unitPrice != null : !this$unitPrice.equals(other$unitPrice)) {
            return false;
        }
        Object this$num = getNum();Object other$num = other.getNum();
        if (this$num == null ? other$num != null : !this$num.equals(other$num)) {
            return false;
        }
        Object this$itemPrice = getItemPrice();Object other$itemPrice = other.getItemPrice();
        if (this$itemPrice == null ? other$itemPrice != null : !this$itemPrice.equals(other$itemPrice)) {
            return false;
        }
        Object this$productCode = getProductCode();Object other$productCode = other.getProductCode();
        if (this$productCode == null ? other$productCode != null : !this$productCode.equals(other$productCode)) {
            return false;
        }
        Object this$unitName = getUnitName();Object other$unitName = other.getUnitName();
        if (this$unitName == null ? other$unitName != null : !this$unitName.equals(other$unitName)) {
            return false;
        }
        Object this$productName = getProductName();Object other$productName = other.getProductName();return this$productName == null ? other$productName == null : this$productName.equals(other$productName);
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof Poitem;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $poId = getPoId();result = result * 59 + ($poId == null ? 43 : $poId.hashCode());Object $unitPrice = getUnitPrice();result = result * 59 + ($unitPrice == null ? 43 : $unitPrice.hashCode());Object $num = getNum();result = result * 59 + ($num == null ? 43 : $num.hashCode());Object $itemPrice = getItemPrice();result = result * 59 + ($itemPrice == null ? 43 : $itemPrice.hashCode());Object $productCode = getProductCode();result = result * 59 + ($productCode == null ? 43 : $productCode.hashCode());Object $unitName = getUnitName();result = result * 59 + ($unitName == null ? 43 : $unitName.hashCode());Object $productName = getProductName();result = result * 59 + ($productName == null ? 43 : $productName.hashCode());return result;
    }

    public String toString()
    {
        return "Poitem(poId=" + getPoId() + ", productCode=" + getProductCode() + ", unitPrice=" + getUnitPrice() + ", num=" + getNum() + ", unitName=" + getUnitName() + ", itemPrice=" + getItemPrice() + ", productName=" + getProductName() + ")";
    }

    public Long getPoId()
    {
        return this.poId;
    }

    public String getProductCode()
    {
        return this.productCode;
    }

    public Double getUnitPrice()
    {
        return this.unitPrice;
    }

    public Integer getNum()
    {
        return this.num;
    }

    public String getUnitName()
    {
        return this.unitName;
    }

    public Double getItemPrice()
    {
        return this.itemPrice;
    }

    public String getProductName()
    {
        return this.productName;
    }
}

